
const sequelize = require('../sequelize');
const Sequelize = require('sequelize');

const STRING = Sequelize.STRING
    const taskModel =sequelize.define('t_task', {
        id: { type: Sequelize.INTEGER, primaryKey: true, autoIncrement: true },
        name: STRING(30),
        type: STRING(30),
        status: STRING(30),
        creator: STRING(30),
        params: STRING(30),
        failReason: STRING(30),
        result: STRING(30),
    }, {
      
        hooks: {
        }


    });

module.exports =  taskModel;
